import { Column, Entity } from 'typeorm'
import { BaseEntity } from './BaseEntity'

@Entity()
export class TeacherInfo extends BaseEntity {

  @Column({ comment: '老师头像' })
  public avatar!: string

  @Column({ comment: '老师名字', length: 12, })
  public name!: string

  @Column({ comment: '每节课多少钱' })
  public price!: number

  @Column({ comment: '手机号' })
  public phone!: number

  @Column({ comment: '微信号', length: 32 })
  public wechat!: string

  @Column({ comment: '地址' })
  public address!: string

  // 0: 博士, 1: 硕士, 2: 本科, 3: 专科
  @Column({ comment: '学历' })
  public education!: 0 | 1 | 2 | 3

  @Column({ comment: '个人简介', type: 'text' })
  public introduce!: string

  @Column({ comment: '照片' })
  public photoUrl!: string
}
